package com.tzbank.entity.mpass;

import com.tzbank.entity.BaseModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Entity(name = "mb_device_bind_info")
@Table(appliesTo = "mb_device_bind_info", comment = "设备绑定信息表")
public class DeviceBindInfo extends BaseModel implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6525122842110942757L;

	/**
	 * 用户id
	 */
	@ApiModelProperty(value = "用户id")
	@Column(name = "user_id", columnDefinition = "varchar(100)  NOT NULL COMMENT '用户id'")
	private String userId;

	/**
	 * 设备号
	 */
	@ApiModelProperty(value = "设备号")
	@Column(name = "device_id", columnDefinition = "varchar(100)  NOT NULL COMMENT '设备号'")
	private String deviceId;

	/**
	 * 设备类型
	 */
	@ApiModelProperty(value = "设备类型")
	@Column(name = "device_type", columnDefinition = "varchar(100)  NOT NULL COMMENT '设备类型'")
	private String deviceType;

	/**
	 * 绑定时间
	 */
	@ApiModelProperty(value = "绑定时间")
	@Column(name = "bind_date", columnDefinition = "timestamp DEFAULT NOW() NOT NULL COMMENT '绑定时间'")
	private Date bindDate;

}
